package com.yami.shop.cp.comment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.cp.comment.dto.CPProdInfo;
import com.yami.shop.cp.comment.dto.CollaborativePurchaseShopCartItemDto;
import com.yami.shop.cp.comment.model.CollaborativePurchaseBasket;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 协同采购提报人购物车 Mapper 接口
 * </p>
 *
 * @author xch
 * @since 2021-06-29
 */
public interface CollaborativePurchaseBasketMapper extends BaseMapper<CollaborativePurchaseBasket> {

    List<CollaborativePurchaseShopCartItemDto> getSubmitPersonShopCartItems(@Param("mobile") String mobile,
                                                                            @Param("collaborativePurchaseId") String collaborativePurchaseId,
                                                                            @Param("dbLang") Integer dbLang);

    List<CollaborativePurchaseShopCartItemDto> getShopCartItemsByCollaborativePurchaseId(@Param("collaborativePurchaseId") String collaborativePurchaseId);

    IPage<CollaborativePurchaseShopCartItemDto> getPageShopCartItemsByCollaborativePurchaseId(PageParam page,
                                                                                              @Param("collaborativePurchaseId") String collaborativePurchaseId,
                                                                                              @Param("status") String status);

    List<CollaborativePurchaseShopCartItemDto> getPageShopCartItemsByCollaborativePurchaseId(@Param("collaborativePurchaseId")String collaborativePurchaseId, @Param("status")String status);

    List<CPProdInfo> getCPSubmitAndCompletePordInfo(@Param("cpId") String cpId);
}
